package cn.itcast.repository;

import cn.itcast.pojo.Item;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @Author: taft
 * @Date: 2018-10-18 9:21
 */
public interface ESRepository extends ElasticsearchRepository<Item,Long> {
    List<Item> findByCategory(String category);
}
